package com.rd.student.jiaji.class3.zhangshixuan.Day0728;

import java.io.*;
import java.util.Scanner;

public class Dianmingqi {
    //        String [] str={"才雨鑫","张世煊","徐铭泽","王岩博","孙国伟","秦嘉林"};
    public static void main(String[] args) throws Exception {
        InputStream is = System.in;
        InputStreamReader reader = new InputStreamReader(is);
        BufferedReader by = new BufferedReader(
                new FileReader("Dianmingce.txt"));
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        String line = null;
        line = by.readLine();
        System.out.println(line);
        reader.close();
        by.close();
        //创建点名册
        File file = new File("Dianmingce.txt");
        Writer writer = new FileWriter(file);
        String str1 = "才雨鑫";
        String str2 = "张世煊";
        String str3 = "徐铭泽";
        String str4 = "王岩博";
        String str5 = "孙国伟";
        String str6 = "秦嘉林";
        writer.write(str1);
        writer.write(str2);
        writer.write(str3);
        writer.write(str4);
        writer.write(str5);
        writer.write(str6);
        writer.close();
        RandomAccessFile file1 =
                new RandomAccessFile("Dianmingce.txt", "rw");
        file1.seek(n);
        byte[] arr = new byte[3];
        file1.read(arr);
        System.out.println(new String(arr));
        file1.close();
    }
}
